		<table cellpadding="3" cellspacing="1"  id="list-table">
			<tr>
				<#--
				<th>ID</th>
				
				-->
				<th>文章标题</th>
				<th>文章作者</th>
				<th>文章内容</th>
				<th>发布时间</th>
				<th>是否开放</th>
				<th>置顶推荐</th>
				<th>回复内容</th>
				<th>操作</th>
			</tr>
<#if (articleList?size>0) >
    <#list  articleList as article>
      <tr>
				<#--	<td align="center" nowrap="nowrap"> ${(article.articleId)?c}</td>
				 -->
					<td align="center"  nowrap="nowrap">
				<#--
					&nbsp;[
					<#if (article.category.catName)??>
					${article.category.catName}
					</#if>
					
					]&nbsp;&nbsp;
-->					 
			 
				 
		
		 <#if (article.title)??>
		 
		 	 
					
					<#if article.title?length lt 30>   
					${article.title}

					<#else> 
    				 ${article.title[0..29]}... 
					</#if>
		 
				</#if>
			 
	 
			 
					 
					</td>


					<td  align="center"  >
					
					
					 <#if (article.member.alias)??>
					 ${article.member.alias} 
						
						</#if>
						
						</td>
					<td align="center"  >
					
					
					 <#if (article.content)??>
						<#if article.content?length lt 13 >   
							${article.content}

						<#else> 
    					 ${article.content[0..12]}... 
						</#if>
					
					 </#if>
					 
					</td>

					<td align="center"   >
					 <#if (article.publishTime)??>
					${article.publishTime}
					 </#if>
					
					</td>
					<td align="center"   nowrap="nowrap">
					 <#if (article.isOpen)??>
					<#if article.isOpen==1 >
						    开放
						<#else>
							不开放
						</#if>
						 </#if>
						</td>
                    <td align="center"  nowrap="nowrap">
					 <#if (article.recommended)??>
					<#if article.recommended==1 >
						    推荐
						<#else>
							不推荐
						</#if>
							</#if>
						</td>


						<td  align="center"  >
					
					
				   				<a href="javascript: var win=window.open('../data/queryArticleCommentByArticleId.action?articleId=${(article.articleId)?c}','_blank','toolbar=no,scrollbars=yes,top=150,left=400,width=600,height=400')" >点我查看 </a>
						
						</td>

					<td   align="center">
					
					 <#if (article.member.memberId)??>
						 <a href="../data/getArticleById.action?articleId=${(article.articleId)?c}&author=${(article.member.memberId)?c}">编辑</a>|
					 <#else>
					 
					</#if>
 						<a   href="../data/preAddArticleComment.action?articleId=${(article.articleId)?c}">小编回复</a>|
 						
						<a  onclick="{if(confirm('你确定要删除吗？')){return true;}return false;}" href="../data/deleteArticleById.action?articleId=${(article.articleId)?c}">删除</a>

					</td>
				</tr>
    </#list>
</#if>


</table>
 <script type="text/javascript">
     listTable.action = "ajaxQueryArticle.action";
     listTable.currentPage=${(page.currentPage)?c};
     listTable.pageCount=${(page.totalPage)?c};
     listTable.recordCount=${(page.allRow)?c};
 </script>
<!-- 分页 -->
<table id="page-table" cellspacing="0">
			<tr>
				<td align="right" nowrap="true">
					<div id="turn-page">
					共<span id="totalRecords">${page.allRow} </span>条记录&nbsp; 
					共<span	id="totalPages">${page.totalPage}</span> 页&nbsp;
				当前第<span	id="pageCurrent">${page.currentPage}</span>页&nbsp;  
	     
	     <!--也许可以换种方式，呵呵，不用人工输入，用下拉列表-->
	     每页显示记录条数 <input type='text' size='3' id='pageSize' value="${page.pageSize}" onkeypress="return listTable.changePageSize(event)" />
	   <!--查询动作-->
	    <input type='hidden' size='3' id='action' value="ajaxQueryArticle.action"/>
	       
							
						<span id="page-link">  
						<a	href="javascript:listTable.gotoPageFirst()">第一页</a> 
						<a	href="javascript:listTable.gotoPagePrev()">前一页</a> 
						<a	href="javascript:listTable.gotoPageNext()">下一页</a> 
						<a	href="javascript:listTable.gotoPageLast()">最后一页</a> 
						<select	id="gotoPage" onchange="listTable.gotoPage(this.value)">
						<#assign x=page.totalPage>
						<#assign y=page.currentPage>
						<#list 1 .. x as i>
						<#if y==i >
						    <option value="${(i)?c}" selected="selected">${(i)?c}</option>
						<#else>
							<option value="${(i)?c}" >${(i)?c}</option>
						</#if>
						</#list>
           </select>
        </span>
        </div>
        </td>
        
    </tr>
</table>
